package com.rdxer.myblog.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
//@Table(name = "aaaaa")
public class Account {
    @Id
    //id
    private String id;
    //注册时间
    private Long createDate;
    //账号
    @Column(length = 180)
    private String username;
    private String email;
    private String phone;
    //名称
    private String displayName;
    //密码
    private String password;
    //头像
    private String avatar;
    //签名
    private String bio;
    //被禁用
    private Boolean disable;
    //角色字段
    private String role;
    //admin
    //user
}
